<extend name="Index:base" />
<block name="content">
	<!-- 中间部分开始 -->
	<div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
			</script>
			<!-- 面包屑导航 -->
			<ul class="breadcrumb">
				<li>
					<i class="icon-home home-icon"></i>
					<a href="__APP__/admin">首页</a>
				</li>
				<li class="active">评价管理</li>
			</ul><!-- .breadcrumb -->
		</div>
		<div class="page-content">
			<!-- 页面导航 -->
			<div class="page-header">
				<h1>
					评价管理
					<small>
						<i class="icon-double-angle-right"></i>
						查看
					</small>
				</h1>
			</div>
			<div class="row">
				<div class="col-xs-12">
					<div class="table-responsive">
						<table id="sample-table-2" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th class="center" width="150px;">商品名称</th>
									<th class="center" width="130px;">购买用户</th>
									<th class="center" width="100px;">评论级别</th>
									<th class="center" >评论内容</th>
									<th class="center" width="100px;">操作</th>
								</tr>
							</thead>
							<tbody>
								<foreach name="reviewdata" item="vo">
									<tr>
										<td class="center" >{$vo.gname}</td>
										<td class="center" >{$vo.uname}</td>
										<td class="center" >{$vo.integral}</td>
										<td class="center" >{$vo.content}</td>
										<td class="center">
											<a href="__CONTROLLER__/delReview/rid/{$vo.rid}">
											删除
											</a>
										</td>
									</tr>
								</foreach>
								<tr style="height:50px;">
									<td colspan="8">{$page}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 删除按钮弹出层 -->
</block>
<block name="privatejs">
	<!-- //加载公共js -->
	<script type="text/javascript">
		jQuery(function($) {
			//设置当前页面的菜单高亮显示 开始
			var nownav = "#sidebar a[href*=Reviewmanage]";
			var parentattr = $(nownav).parent().parent().attr("class");
			$(nownav).parent().addClass('active');
			if (parentattr == 'submenu') {
				$(nownav).parent().parent().parent().addClass('active open');
			};
		});
	</script>
</block>